import i18n from "@/locale/index";
import Layout from "@/layout/index";

export default {
    //权限管理
    path: '/authority',
    redirect: '/authority/menuManagement',
    meta: {
        path: 'authority'
    },
    component: Layout,
    children: [
        {
            //菜单管理
            path: 'menuManagement',
            name: 'menuManagement',
            meta: {
                path: 'authority/menuManagement'
            },
            component: () => import('@/views/authority/menuManagement/index'),
        },
        {
            //角色管理
            path: 'roleManagement',
            name: 'roleManagement',
            meta: {
                path: 'authority/roleManagement'
            },
            component: () => import('@/views/authority/roleManagement/index'),
        },
        {
            //员工管理
            path: 'staffManagement',
            name: 'staffManagement',
            meta: {
                path: 'authority/staffManagement'
            },
            component: () => import('@/views/authority/staffManagement/index'),
        },
    ]
}
